<%@page contentType="text/html"%>
<%@page pageEncoding="ISO-8859-1"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<LINK href="padrao.css" type="text/css" rel="stylesheet">
<%@ include file="/topo.htm" %>
<title><fmt:message key="app.title"/></title>
<div id="principal">
    <jsp:include page="/menu.jsp"></jsp:include>
    <div id="centro">
        <form action="<%= request.getContextPath() %>/despesa.ctr" method="POST">
            <fmt:message key="despesacad.nome"/>
            <input type="text" name="nome"> <br>
            
            <fmt:message key="despesacad.tipo"/>
            <select name="tipoDespesa" >
                <option>-</option>
                <c:forEach var="tipoform" items="${select_tipo_despesas}">
                    <option value="${tipoform.identificador}">${tipoform.nome}</option>
                </c:forEach>
            </select> <br>
            
            <fmt:message key="despesacad.data"/>
            <input type="text" name="data">
            <br>
            
            <fmt:message key="despesacad.valor"/>
            <input type="text" name="valor">
            <br>
            
            <fmt:message key="despesacad.parcela"/>
            <input type="text" name="parcela">
            <br>
            
            <input type="submit" value="<fmt:message key='despesacad.submit'/>">
            
            <input type="reset" value="<fmt:message key='despesacad.limpar'/>">
            
            <input type="hidden" name="action" value="insert">
        </form>
        
        <jsp:include page="/WEB-INF/pages/error.jsp"/>
    </div>
</div>
</body>
</html>
